﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ongoal.Quotation.Service.ViewModel
{
    /// <summary>
    /// 数据字段视图模型
    /// </summary>
    public class TableFiledView
    {
        //主键
        public int ID { get; set; }
        //所属表
        public int TableID { get; set; }
        //字段名称
        public string FiledName { get; set; }
        //字段代码
        public string FiledCode { get; set; }
        //数据类型
        public int DataType { get; set; }
        //字段长度
        public int FiledLength { get; set; }
        public bool Nullable { get; set; }
        public bool IsForeign { get; set; }
        public int ForeignTableID { get; set; }
        public int ForeignFiledID { get; set; }
        public string VerifyRegular { get; set; }
        public string Remark { get; set; }
        //创建人
        public int CreatorID { get; set; }
        public bool IsIdentity { get; set; }
        public bool IsPrimaryKey { get; set; }
        public bool IsLikeFiled { get; set; }
        public int CodeTable { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; }
        //修改人
        public int ModifyID { get; set; }
        //修改时间
        public DateTime ModifyTime { get; set; }


        /// <summary>
        /// 外键表显示字段
        /// </summary>
        public int ForeignLableFiled { get; set; }

        /// <summary>
        /// 外键表名称
        /// </summary>
        public string ForeignTableName { get; set; }

        /// <summary>
        /// 外键表值字段名称
        /// </summary>
        public string ForeignFiledName { get; set; }

        /// <summary>
        /// 外键表显示字段名称
        /// </summary>
        public string ForeignLableName { get; set; }
    }
}
